<template>
	<view class="outBox">
		<u-navbar leftText="竞价" leftIconColor="#fff" :autoBack="true" bgColor="#242331">
			<view class="left-slot" slot="left">
				 <u-icon name="arrow-left" color="#fff"></u-icon>
				<text>竞价</text>
			</view>
		</u-navbar>
		<view class="content" :style="{
			marginTop:menuHeight + 'px',
		}">
			<image class="bg" :src="baseImgUrl + 'reservation/banner.png'" mode="scaleToFill"></image>
			<view class="contentInner">
				<view class="item">
					<view class="name">
						<text>当前最高价</text>
					</view>
					<view class="value">
						<text>2000元</text>
					</view>
				</view>
				<view class="item">
					<view class="name">
						<text>我的竞价</text>
					</view>
					<view class="value">
						<u--input :customStyle="{
							background:'#fff'
						}" type="number" placeholder="请输入"></u--input>
					</view>
				</view>
				<view class="btns">
					<view class="btn">
						确认竞价
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getWXStatusHeight
	} from '@/utils/index.js'
	export default {
		data() {
			return {
				// 胶囊的宽度
				barWidth: 0,
				menuHeight: 0,
			}
		},
		onLoad() {
			let obj = getWXStatusHeight()
			this.barWidth = obj.barWidth + 3
			this.menuHeight = obj.menuHeight
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.btns{
		display: flex;
		justify-content: center;
		margin-top: 50rpx;
		.btn{
			padding: 20rpx 40rpx;
			color: #fff;
			background-color: #76a834;
			border-radius: 40rpx;
		}
	}
	.item{
		margin-top: 30rpx;
		display: flex;
		justify-content: space-between;
		color: #fff;
		line-height: 80rpx;
	}
	.contentInner {
		position: relative;
		z-index: 9;
		padding: 40rpx;
	}

	.bg {
		width: calc(100% - 80rpx);
		height: 100%;
		position: absolute;
		z-index: 2;
		border-radius: 20rpx;
		overflow: hidden;
	}

	.content {
		position: relative;
		padding: 20rpx 40rpx;
		box-sizing: border-box;
		min-height: calc(100vh - 40rpx);
	}

	.left-slot {
		color: #fff;

		image {
			width: 40rpx;
			margin-right: 30rpx;
		}
	}

	.outBox {
		background-color: #242331;
	}
</style>
